* {
    padding: 0;
    margin: 0;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-image: url(bgd.jpg);
    background-size: 300px 280px; 
    background-position: center;
    background-attachment: fixed; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f5;
    gap: 20px;
}

.mainBox {
    width: 400px;
    height: auto; 
    border: 2px solid black;
    border-radius: 10px;
    display: flex;
    gap: 30px;
    flex-direction: column;
    padding: 30px 20px 10px 20px;
    background: #36454f; 
    color: #f2e9e1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

 #h1-title {
    justify-self: center;
    align-self: center;
    color: #f2e9e1;
    flex-direction: column;
    border-bottom-style: outset;
    border-color: #96d4d4;
    
 }

/* .gender, .gender-input {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}


.gender-input {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
} */

.gender, .gender-input {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 16px;
}

.gender-input {
    justify-content: flex-start;
    align-content: center;
    margin-left: 5%;
}

.gender-label {
    color: #f2e9e1;
}

.g-input {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.age, .height, .weight, .weather, .activity-level {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#age-in-years,  #height-in-cm, #weight-in-kg {
    background-color: #96d4d4;
    color: #36454f;
    width: 50px;
    display: flex;
    justify-content: center;
    align-content: center;
}

#a-input, #age-in-years, #h-input, #height-in-cm, #w-input, #weight-in-kg {
    padding: 5px;
    font-size: 16px;
}

.age-input-group, .height-input-group, .weight-input-group, .weather-select-group, .activity-level-select-group{
    display: flex;
    flex-direction: column;
    justify-items: end;
    align-items: end;
    width: 100%;
}

.age-input, .height-input, .weight-input{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px; 
    border: 1px solid #ccc;
    border-radius: 4px;
    /* padding: 5px; */
    background-color: #fff;
    width: 120px;
}

#age-input-error , #height-input-error, #weight-input-error {
    font-size: 13px;
    display: none;
    color: #FF4B2B;
}
select {
    align-items: center;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 4px;
    padding: 5px;
}

.a-inpt, .h-inpt, .w-inpt {
    width: 70px;
    border: none;
    outline: none;
    text-align: center;
    font-size: 14px;
}

.input-years, .height.cm, .w-inpt {
    font-size: 16px;
    color: black;
    white-space: nowrap; 
}

.p-gender, .age-lbl label, .height-lbl label, .weight-lbl label, .weather-lbl label, .activity-level-lbl label {
    font-size: 20px;
    width: 40%;
    align-items: center;
    color: #f2e9e1
}

#activity-level-id {
    display: flex;
    align-items: center;
}

.weather, .activity-level {
    display: flex;
    flex-direction: row;
    align-items: start;
    width: 100%;
    
}

.water-input {
    width: 30%;
    flex-direction: row;
    justify-self: center;
    align-self: center;
    margin-top: 20px;
    padding: 4px;
}

.w-select-box, .a-l-select-box {
    color: #36454f;
}

input[type="radio"], option {
    accent-color: #96d4d4;
}

#buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-self: center;
    justify-content: center;
    width: 450px;
}

#button-submit, #button-reset {
    border-radius: 5px;
    height: 40px;
    margin: 0;
    font-size: 16px;
}


#button-submit {
    background-color: #d3f262;
}

#button-submit:hover {
    background-color: #bef108;
    height: 42px;
    /* width: 125px; */
}

#button-reset {
    background-color: #ea7d59;
    height: 41px;
} 

#button-reset:hover {
    background-color: #f36231;
    height: 42px;
    /* width: 125px; */
}


#submit-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#ideal-water-intake-final-message, #min-water-intake-final-message   {
    color: #f2e9e1;
    font-size: 20px;
}

@media screen and (max-width: 490px) {

    body {
        background-image: none;
        background-color: #96d4d4;
    }
    
    .mainBox {
        min-width: 300px;
        width: 300px;
    }

    #h1-title {
        font-size: 28px ;
    }

    .w-select-box, .a-l-select-box{
        height: 30px;
        color: black;
    }

    #buttons {
        flex-direction: column-reverse;
        gap: 5px;
        border-color: black;
        width: 600px;
    }
    
}